﻿using System.Reflection;

namespace Utils.BreakHsl;

public class RefalHsl
{
    // 传入HslCommunication.Authorization 即可
    public static void getMethod<T>()
    {
        BindingFlags flag = BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.Static;
        var f = typeof(T).GetMethod("asdhuasdgawydaduasdgu", flag);
        var f1 = typeof(Temp).GetMethod("Getbool", flag);
        Refal.ReplaceMethod(f, f1);
    }
}

public static class Temp
{
    private static bool Getbool() => true;
}